package view.components
{
	import flash.display.DisplayObject;
	
	import global.Resource;
	
	public class LabelButton extends Button
	{
		private var face:String ;
		protected var faceImg:DisplayObject;
		
		public function LabelButton(x:int, y:int, id:int, onClickFunction:Function,face:String,info:String = null)
		{
			super(x, y, id, onClickFunction);
			this.isLight = false;
			this.face = face;
			this.buttonMode = true;
			this.info = info;
			initFace();
		}
		
		private function initFace():void
		{
			faceImg = Resource.getImg(face)
			addChild(faceImg);
		}
	}
}